(describe-buffer-case-table): Merge locals i and ch.
authorRichard M. Stallman <rms@gnu.org>
Mon, 7 Jun 1993 19:11:40 +0000 (19:11 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 7 Jun 1993 19:11:40 +0000 (19:11 +0000)
Make *Help* current buffer for describe-vector.

lisp/case-table.el

index 09cf1f56eaa568b6a8032c990b273a9e8d6b612b..8160ede55cd08dd306912d0cc6133ecc4baf8a8a 100644 (file)
@@ -39,9 +39,9 @@
   (interactive)
   (let ((vector (make-vector 256 nil))
        (case-table (current-case-table))
-       (i 0))
-    (while (< i 256)
-      (aset vector 
+       (ch 0))
+    (while (< ch 256)
+      (aset vector ch
            (cond ((/= ch (downcase ch))
                   (concat "uppercase, matches "
                           (text-char-description (downcase ch))))
                   (concat "lowercase, matches "
                           (text-char-description (upcase ch))))
                  (t "case-invariant")))
-      (setq i (1+ i)))
-    (with-output-to-temp-buffer "*Help*"
-      (describe-vector vector))))
+      (setq ch (1+ ch)))
+    (save-excursion
+     (with-output-to-temp-buffer "*Help*"
+       (set-buffer standard-output)
+       (describe-vector vector)))))
 
 ;;;###autoload
 (defun set-case-syntax-delims (l r table)